/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package quanlynhatre.Model;

import java.util.Date;
import java.util.ArrayList;

/**
 *
 * @author VOTHUY
 */
public class PhieuThu {
    
    private String SoPhieuThu;
    private String LyDoThu;
    private Date NgayThu;

    private TreEm refthu;
    //private float sotien; //?? thuoc tinh trong quan he
    private ArrayList<DanhMucThu> refdmthu;
    //private int soluong; // ?? thuoc tinh trong quan he

// Khoi tao
public PhieuThu(){}
public PhieuThu(String sophieuthu, String lydothu, Date ngaythu, TreEm refthu) {
        this.SoPhieuThu = sophieuthu;
        this.LyDoThu = lydothu;
        this.NgayThu = ngaythu;
        this.refthu = refthu;
        //this.sotien = sotien;
        this.refdmthu = new ArrayList<DanhMucThu>();
        //this.soluong = soluong;
    }

// Ham get, set
public String getSoPhiruThu() {
        return SoPhieuThu;
    }
public void setSoPhiruThu(String sophieuthu) {
        this.SoPhieuThu = sophieuthu;
    }
public String getLyDoThu() {
        return LyDoThu;
    }
public void setLyDoTHu(String Lydothu) {
        this.LyDoThu = Lydothu;
    }
public Date getNgayThu() {
        return NgayThu;
    }
public void setNgayThu(Date ngaythu) {
        this.NgayThu = ngaythu;
    }

public TreEm getRefthu() {
        return refthu;
    }

public void setRefthu(TreEm refthu) {
        this.refthu = refthu;
    }

public ArrayList<DanhMucThu> getRefdmthu() {
        return refdmthu;
    }

public void setRefdmthu(ArrayList<DanhMucThu> refdmthu) {
        this.refdmthu = refdmthu;
    }

}
